
public class sn_node {
	private int sn_number = 0;
	private int x_position = 0;
	private int y_position = 0;
	private int energy = 0;
	private int neighbors[];
	private int cn_distance = 0;


	/*
	 * SAMPLE NODE CODE
	 * 
	 * 
	 * public class pOneChildNode{
    protected Object data;
    protected pOneChildNode next;

    public pOneChildNode(){
        next = null;
        data = null;
    }
    public pOneChildNode(Object d,pOneChildNode n){
        data = d;
        next = n;
    }
    public void setNext(pOneChildNode n){
        next = n;
    }
    public void setData(Object d){
        data = d;
    }
    public pOneChildNode getNext(){
        return next;
    }
    public Object getData(){
        return data;
    }
    public String toString(){
        return ""+data;
    }
}
	 */

	public sn_node (int sn, int x, int y, int e) {
		sn_number = sn;
		energy = e;
		x_position = x;
		y_position = y;
	}

	public int get_energy() {
		return energy;
	}

	public void set_energy(int e) {
		energy = e;
	}

	public int[] get_neighbors() {
		return neighbors;
	}

	public void set_neighbor(int sn_number) {
		neighbors[neighbors.length] = sn_number;
	}

	public void remove_neighbor(int sn_number) {
		for(int i = 0; i < neighbors.length-1; i++) {
			if(neighbors[i] == (sn_number)) {
				neighbors[i] = 0;
			}
		}
	}


	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub

	}

}
